import Layout from '@/layout'

const Router = {
  path: '/operateActive',
  component: Layout,
  redirect: '/subsidy-activities',
  name: 'operateActive',

  meta: {
    title: '运营活动',
    icon: 'icon_operate'
  },
  children: [
    {
      path: 'subsidy-activities',
      component: () => import('@/views/operateActive/subsidyActivities'),
      name: 'BusinessInput',
      meta: { title: '收款补贴活动', noCache: true }
    },
    {
      path: 'purchases',
      component: () => import('@/views/operateActive/purchase/purchase'),
      name: 'Purchase',
      meta: { title: '够卡得FB', noCache: true }
    },
    {
      path: 'burstcard-activity',
      component: () => import('@/views/operateActive/burstcardActivity/burstcardActivity'),
      name: 'burstcardActivity',
      meta: { title: '爆卡活动', noCache: true }
    },
    {
      path: 'consumption',
      component: () => import('@/views/operateActive/consumption/consumption'),
      name: 'consumption',
      meta: { title: '消费得FB', noCache: true }
    },
    // 1.9.8
    {
      path: 'dy-buying',
      component: () => import('@/views/operateActive/dyBuying/dyBuying'),
      name: 'dyBuying',
      meta: { title: '抖音团购', noCache: true }
    },
    {
      path: 'add-active',
      component: () => import('@/views/operateActive/dyBuying/addActive'),
      name: 'addActive',
      hidden: true,
      meta: { title: '新增团购', noCache: true }
    },
    {
      path: 'edit-active',
      component: () => import('@/views/operateActive/dyBuying/editActive'),
      name: 'editActive',
      hidden: true,
      meta: { title: '编辑活动', noCache: true }
    },
    {
      path: 'buying-order',
      component: () => import('@/views/operateActive/buyingOrder/buyingOrder'),
      name: 'buyingOrder',
      meta: { title: '团购订单', noCache: true }
    },
    {
      path: 'dy-withdrawal',
      component: () => import('@/views/operateActive/dyWithdrawal/dyWithdrawal'),
      name: 'dyWithdrawal',
      meta: { title: '抖音提现管理', noCache: true }
    },
    {
      path: 'dy-banner',
      component: () => import('@/views/operateActive/dyBanner/dyBanner'),
      name: 'dyBanner',
      meta: { title: '抖音小程序轮播图设置', noCache: true }
    },
    {
      path: 'commodity-allocation',
      component: () => import('@/views/operateActive/commodityAllocation/commodityAllocation'),
      name: 'commodityAllocation',
      meta: { title: '团购首页商品配置', noCache: true }
    },
    {
      path: 'selection-configuration',
      component: () => import('@/views/operateActive/selectionConfiguration/selectionConfiguration'),
      name: 'selectionConfiguration',
      meta: { title: '聚推客选品配置', noCache: true }
    },
    {
      path: 'buying-special',
      component: () => import('@/views/operateActive/buyingSpecial/buyingSpecial'),
      name: 'buyingSpecial',
      meta: { title: '团购专题配置', noCache: true }
    },
  ]
}

export default Router
